package com.xianniu.ltc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xianniu.ltc.model.entity.TRbhetong0DTO;
import com.xianniu.ltc.model.entity.TRbshangji1DTO;
import com.xianniu.ltc.model.po.report.ReportLeadPO;
import com.xianniu.ltc.model.vo.statistics.ShangJiStatisticsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TRbshangji1Mapper extends BaseMapper<TRbshangji1DTO> {
    /**
     * 商机新增-按周
     * @param po
     * @return
     */
    List<ShangJiStatisticsVo> queryNowYearChaoNengBaoShangJiByWeek(@Param("po") ReportLeadPO po, @Param("weekList") int[] weekList);

    /**
     * 商机新增-按月
     * @param po
     * @return
     */
    List<ShangJiStatisticsVo> queryNowYearChaoNengBaoShangJiByMonth(@Param("po") ReportLeadPO po);

    /**
     * 按年统计
     * @param po
     * @return
     */
    List<ShangJiStatisticsVo> queryChaoNengBaoShangJiByYear(@Param("po") ReportLeadPO po);

    /**
     * 按起止时间
     * @param po
     * @return
     */
    List<ShangJiStatisticsVo> queryChaoNengBaoShangJiByStartAndEndTime(@Param("po") ReportLeadPO po );

}
